package cn.panda.edu.dao;

import cn.panda.edu.model.SectionTest;

import java.util.List;
import java.util.Map;

/**
 * 
 * 类描述： 对章节测试的操作
 * 
 * @author: 陈飞帆 @date： 2018-01-15 下午3:55:55
 */
public interface SectionTestMapper {
	/**
	 * 
	 * @Title: deleteByPrimaryKey
	 * @Description:根据章节ID删除
	 * @param sectionTestId
	 * @return int
	 */
	int deleteByPrimaryKey(Integer sectionTestId);
	/**
	 * 
	* @Title: listSectionTest 
	* @Description: 获取所有章节测试列表
	* @return  
	* List<SectionTest>
	 */
	List<SectionTest> listSectionTest();
	/**
	 * 
	 * @Title: insert
	 * @Description: 添加章节测试
	 * @param record
	 * @return int
	 */
	int insert(SectionTest record);

	/**
	 * 
	 * @Title: insertSelective
	 * @Description: 动态添加章节测试
	 * @param record
	 * @return int
	 */
	int insertSelective(SectionTest record);

	/**
	 * 
	 * @Title: selectByPrimaryKey
	 * @Description: 根据章节测试ID查询
	 * @param sectionTestId
	 * @return SectionTest
	 */
	SectionTest selectByPrimaryKey(Integer sectionTestId);

	/**
	 * 
	 * @Title: updateByPrimaryKeySelective
	 * @Description: 动态更新章节
	 * @param record
	 * @return int
	 */
	int updateByPrimaryKeySelective(SectionTest record);

	int insertSectionScore(Map<String, Object> map) ;
	/**
	 * 
	 * @Title: updateByPrimaryKey
	 * @Description: 更新章节
	 * @param record
	 * @return int
	 */
	int updateByPrimaryKey(SectionTest record);
}